<?php echo $this->Html->script(array('TransactionManager.js'),array('inline' => false));?>
<div id ="viewInfo">
	<fieldset>
	<legend>Transaction Manager</legend>
	<div class="search" style="float: left;">
			<p>
				<label for="dropdown">Name: </label>
				<select name="dropdown" class="grounpId">
					<option value = '1'>Please select an option</option>
					<?php foreach ($allUser as $item){?>
						<option value = '<?php echo  base64_encode($item['User']['username'])?>'><?php echo $item['User']['username']?></option>
					<?php }?>
				</select>
			</p>
			<p style="margin-left: 118px;">
				<input type="radio" value="0" name="ChooseType">Advice
				<input type="radio" value="1" name="ChooseType">Need Advice
				<input type="radio" value="2" name="ChooseType" checked="checked">All
			</p>
			<p>
				<label for="mf">From Date: </label>
	 			<input class="mf" name="FromDate"  type="date" value="<?php echo $StartDate?>" /> 
			</p>
			<p>
				<label for="mf">To Date: </label>
	 			<input class="mf" name="ToDate"  type="date" value="<?php echo $EndDate ?>" /> 
			</p>
			<input class="button Search" type="button" value="Search">
	</div>
	<div class="Info" style="float: right;">
		<p>
			<label for="mf">Total Money In</label>
 			<input  name="moneyIn"  type="text" value="<?php echo $TotalMoney['money_in']?>" /> 
		</p>
		<p>
			<label for="mf">Total Money Out</label>
 			<input  name="moneyIn"  type="text" value="<?php echo $TotalMoney['money_out']?>" /> 
		</p>
	</div>
		
	</fieldset>
</div>

<div id="tabs-2">	
	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
	<table class="fullwidth" cellpadding="0" cellspacing="0" border="0">
		<thead>
			<tr>
				<td>ID.</td>
				<td>User Need Advice</td>
				<td>Skype</td>
				<td>User Advice</td>
				<td>Skype</td>
				<td>Start Time</td>
				<td>End Time</td>
				<td>Total Time</td>
				<td>Money In</td>
				<td>Money Out</td>
			</tr>
		</thead>
		<?php
			if($Dataview){
		 		foreach ($Dataview as $view){
					echo $view;
				}
			}else{
			
		?>
		<span class="validate_success">A positive message!</span>
	<?php }?>
	</table>
</div>
